Skip to content

Add backlog, canceled, and duplicate task states - #1797

Merged
SachaProbo merged 1 commit into
mainfrom
SachaProbo/add-task-states
Aug 31, 2026
Merged

Add backlog, canceled, and duplicate task states#1797
SachaProbo merged 1 commit into
mainfrom
SachaProbo/add-task-states

Conversation

@SachaProbo

@SachaProbo SachaProbo commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary by cubic

Adds BACKLOG, CANCELED, and DUPLICATE task states across storage, APIs, clients, and the UI. New tasks still default to TODO when no state is supplied, while callers can now create or update tasks in any state.

Tests +46 -2

Creates tasks in every supported state and confirms the default TODO state when none is given.

Coredata +33 -1

Adds the new enum values via migration and validates them alongside the existing states.

GraphQL API +5 -0

Exposes the new states and accepts an optional state on task creation.

MCP +8 -0

Adds the new states and a state input to the create-task tool schema and resolver.

prb (CLI) +31 -1

Adds a --state flag to task create, validates state on create and update, and generates flag help from the enum.

Service +8 -1

Passes an optional task state through validation and keeps TODO as the fallback.

App: console +88 -48

Shows all six states in task forms and board columns, adds the state selector to create, and adds a Backlog-to-To-do quick move with English, French, and Dutch translations.

Package: ui +66 -1

Adds icons, the exported TaskState type, and Storybook stories for the new states.

Package: n8n-node +57 -4

Adds the new states to task create and update options.

Written for commit 34562ba. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 15 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread apps/console/src/components/tasks/TasksCard.tsx
@SachaProbo
SachaProbo force-pushed the SachaProbo/add-task-states branch from cc0869b to 6cc2152 Compare August 28, 2026 14:22
@SachaProbo
SachaProbo requested a review from a team August 28, 2026 14:22
@SachaProbo SachaProbo changed the title Add backlog, canceled, and duplicate task states. Add backlog, canceled, and duplicate task states Aug 28, 2026
@SachaProbo
SachaProbo force-pushed the SachaProbo/add-task-states branch 2 times, most recently from 6b75a0b to e3dca98 Compare August 28, 2026 14:31

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 15 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

Comment thread apps/console/src/components/tasks/TaskFormDialog.tsx Outdated
@SachaProbo
SachaProbo force-pushed the SachaProbo/add-task-states branch 2 times, most recently from a879b59 to 24fc783 Compare August 31, 2026 12:32

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 20 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

Comment thread pkg/server/api/mcp/v1/specification.yaml
@SachaProbo
SachaProbo force-pushed the SachaProbo/add-task-states branch from 24fc783 to 80edff2 Compare August 31, 2026 13:01

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 20 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="pkg/coredata/migrations/20260828T133808Z.sql">

<violation number="1" location="pkg/coredata/migrations/20260828T133808Z.sql:21">
P1: During a rolling deployment, this migration makes new task states writable while target-branch instances may still read tasks. Those instances reject the new enum values in `TaskState.UnmarshalText`, so task queries can fail once a new state is used; deploy a tolerant reader before enabling these values or ensure old instances are fully drained before applying the migration.</violation>
</file>

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-- SOFTWARE.

ALTER TYPE task_state ADD VALUE 'BACKLOG' BEFORE 'TODO';

@cubic-dev-ai cubic-dev-ai Bot Aug 31, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: During a rolling deployment, this migration makes new task states writable while target-branch instances may still read tasks. Those instances reject the new enum values in TaskState.UnmarshalText, so task queries can fail once a new state is used; deploy a tolerant reader before enabling these values or ensure old instances are fully drained before applying the migration.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At pkg/coredata/migrations/20260828T133808Z.sql, line 21:

<comment>During a rolling deployment, this migration makes new task states writable while target-branch instances may still read tasks. Those instances reject the new enum values in `TaskState.UnmarshalText`, so task queries can fail once a new state is used; deploy a tolerant reader before enabling these values or ensure old instances are fully drained before applying the migration.</comment>

<file context>
@@ -0,0 +1,23 @@
+-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+-- SOFTWARE.
+
+ALTER TYPE task_state ADD VALUE 'BACKLOG' BEFORE 'TODO';
+ALTER TYPE task_state ADD VALUE 'CANCELED';
+ALTER TYPE task_state ADD VALUE 'DUPLICATE';
</file context>
Fix with cubic

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporary breaking changes are fine here, it is an edge case on a non vital part of the app

@SachaProbo
SachaProbo force-pushed the SachaProbo/add-task-states branch 3 times, most recently from 4d9cea2 to ccc46d5 Compare August 31, 2026 13:15

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 22 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

Comment thread pkg/cmd/task/create/create.go
@SachaProbo
SachaProbo force-pushed the SachaProbo/add-task-states branch from ccc46d5 to 0afb894 Compare August 31, 2026 13:26

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 23 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

Comment thread pkg/cmd/cmdutil/flags.go Outdated
@SachaProbo
SachaProbo force-pushed the SachaProbo/add-task-states branch 2 times, most recently from e324a9d to 6c2c5e7 Compare August 31, 2026 13:50
Signed-off-by: Sacha Al Himdani <sacha@probo.com>
@SachaProbo
SachaProbo force-pushed the SachaProbo/add-task-states branch from 6c2c5e7 to 34562ba Compare August 31, 2026 13:58
@SachaProbo
SachaProbo merged commit 34562ba into main Aug 31, 2026
30 of 31 checks passed
@SachaProbo
SachaProbo deleted the SachaProbo/add-task-states branch August 31, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant